package ecut;

import java.sql.ResultSet;

public class TestJDBCUtil {
    public static void main(String[] args) throws Exception {
        Student student = new Student();
        student.setName("吕布");
        student.setPassword("字奉先");

        String sql = "select * from user";
        ResultSet resultSet =JDBCUtil.selectSQL(sql);
        while (resultSet.next()){
            System.out.println(resultSet.getString("username"));
        }
    }
}
